/**
  ******************************************************************************
  * File Name          : I2C.h
  * Description        : This file provides code for the configuration
  *                      of the I2C instances.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                        opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __i2c_H
#define __i2c_H
#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "main.h"

void MX_I2C1_Init(void);

uint8_t bmp180_i2c_write(uint8_t devaddr, uint8_t reg_addr, uint8_t *byte, uint8_t size);
uint8_t bmp180_i2c_read(uint8_t devaddr, uint8_t reg_addr, uint8_t *byte, uint8_t size);

#ifdef __cplusplus
}
#endif
#endif /*__ i2c_H */
